package com.cehome.cloudbox.utils;
import org.springframework.context.MessageSource;
import org.springframework.context.i18n.LocaleContextHolder;
public class I18nUtils {
    public static String message(String code, Object... args) {
        MessageSource messageSource = (MessageSource)SpringUtils.getBean(MessageSource.class);
        return messageSource.getMessage(code, args, LocaleContextHolder.getLocale());
    }
}